<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{:url('letter/index')}">私信列表</a></li>
	</ul>
	<form class="well form-inline margin-top-20" method="post" action="{:url('letter/index')}">
		私信内容:
		<input type="text" class="form-control" name="c_content" value="{$c_content}" placeholder="请输入私信内容">
		<input type="submit" class="btn btn-primary" value="搜索" />
		<a class="btn btn-danger" href="{:url('letter/index')}">清空</a>
	</form>
	<table class="table table-hover table-bordered">
		<thead>
		<tr>
			<th width="50">ID</th>
			<th>留言人</th>
			<th>首条内容</th>
			<th>私信数量</th>
			<th>明星</th>
			<th>发布时间</th>
			<th width="50">操作</th>
		</tr>
		</thead>
		<tbody>
		<foreach name="comment" item="vo">
			<tr>
				<td>{$vo.id}</td>
				<td>{$vo.u_nickname}</td>
				<td><a href="{:url('letter/info',array('cid'=>$vo['c_cid'],'parent'=>$vo['c_parent']))}">{$vo.c_content}</a></td>
				<td>{$vo.number}</td>
				<td>{$vo.s_name}</td>
				<td>{$vo.c_createtime}</td>
				<td>
					<if condition="$vo['c_status'] lt 30">
						<a href="{:url('letter/disabled',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要屏蔽此私信吗？">屏蔽</a>
						<else />
						<a href="{:url('letter/disabled',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要显示此私信吗？"><b style="color: red">显示</b></a>
					</if>
				</td>
			</tr>
		</foreach>
		</tbody>
	</table>
	<div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>